package cn.hm.service.impl;

import cn.hm.entity.Permission;
import cn.hm.mapper.PermissionMapper;
import cn.hm.service.PermissionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author  Mxb
 * @date  2020/7/28 16:21
 * @version 1.0
 */
@Service
public class PermissionServiceImpl implements PermissionService{

    @Resource
    private PermissionMapper permissionMapper;

    @Override
    public Permission selectByPrimaryKey(String id) {
        return permissionMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<String> selectPermissionByUserId(Long id) {
        return permissionMapper.selectPermissionByUserId(id);
    }
}
